{% extends "base.html" %}
{% block content %}

<u><h2> Categories </h2></u>
{% for categorie in categorie %}
<ul>
<li><h3>{{categorie.body}}</h3></li>
</ul>
{% endfor %}

{% for post in post %}
<h2><a href="/blog/{{post.id}}">{{ post.title }}</a></h2>
<h3>Category: {{post.category.body}}</h3>
<div class="post_meta"> on {{ post.created }}
</div>
<div class="post_body"> {{ post.body|safe|linebreaks }}
</div>
{% endfor %}

<u><h2> Favorite Websites </h2></u>
{% for website in website %}
<ul>
<li><a href="http://{{website.body}}">{{website.body}}</a></li>
</ul>
{% endfor %}

{% for slogan in slogan %}
<h3>{{ slogan.title }}</h3>
{% endfor %}



{% for page in page %}
<h2><a href="/blog/{{page.id}}">{{ page.title }}</a></h2>

<div class="post_body"> {{ page.body|safe|linebreaks }}
</div>
{% endfor %}



{% endblock %}